﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 字典管理
    /// </summary>
    [Table("sys_dictionary")]
    public class SysDictionaryEntity:EntityBaseDateDel
    {
        /// <summary>
        /// Dcode
        /// </summary>
        public string Dvalue { get; set; }
        /// <summary>
        /// Parentcode
        /// </summary>
        public string ParentId { get; set; }
        /// <summary>
        /// Dname
        /// </summary>
        public string Dname { get; set; }
        /// <summary>
        /// Dseq
        /// </summary>
        public int? Dseq { get; set; }
        /// <summary>
        /// Isenable
        /// </summary>
        public bool? Isenable { get; set; }
        /// <summary>
        /// 自定义类型
        /// </summary>
        public string Dictype { get; set; }
        /// <summary>
        /// Remark
        /// </summary>
        public string Remark { get; set; }
       
    }
    public class SysDictionaryEntityMapper : ClassMapper<SysDictionaryEntity>
    {
        public SysDictionaryEntityMapper()
        {
            Table("sys_dictionary");
            AutoMap();
        }
    }
}
